<!doctype html>
<html>
<head>
	{php $aideUrl = aide_URL;}
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<!--标题-->
	<title>{if !empty($pagetitle)}{$pagetitle}{elseif !empty($_W['page']['title'])}{$_W['page']['title']}{/if}</title>
	<meta name="format-detection" content="telephone=no, email=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="apple-touch-fullscreen" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<link rel="shortcut icon" href="{$_W['siteroot']}{$_W['config']['upload']['attachdir']}/{if !empty($_W['setting']['copyright']['icon'])}{$_W['setting']['copyright']['icon']}{else}images/global/wechat.jpg{/if}" />
	<link rel="stylesheet"  type="text/css" href="{$aideUrl}app/resource/aitimt/css/mui.min.css">
	<link rel="stylesheet"  type="text/css" href="{$aideUrl}app/resource/aitimt/css/iconfont.css">
	<link rel="stylesheet" type="text/css" href="{$aideUrl}app/resource/components/dropload/dropload.css?v=20171106">
	<style type="text/css">
		#list {
			/*避免导航边框和列表背景边框重叠，看起来像两条边框似得；*/
			margin-top: -1px;
		}
	</style>
	{php echo register_jssdk(false);}
	<!--兼容图片上传1.0-->
	<script>var app_module_name='{MODULE_NAME}';</script>
	<script type="text/javascript" src="{$_W['siteroot']}app/resource/js/app/util.js?v=201801071"></script>
	<script type="text/javascript" src="{$_W['siteroot']}app/resource/js/require.js?v=201801071"></script>
	<script type="text/javascript" src="{$_W['siteroot']}app/resource/js/lib/jquery-1.11.1.min.js?v=201801071"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/js/jquery.cookie.js"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/js/app/util.min.js?v=201801080"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/components/dropload/dropload.min.js"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/components/layui/laytpl.js"></script>
	<script type="text/javascript" src="{$aideUrl}app/resource/aitimt/js/mui.min.js"></script>

	<script type="text/javascript">
		//分享设置 start
		var shareData = {
			title : "{$_W['share']['title']}",
			desc  : "{$_W['share']['desc']}",
			link  : window.location.href,
			imgUrl: "{php echo tomedia($_W['share']['pic'])}"
		};
		wx.ready(function () {
			var _sharedata = {
				title  : shareData.title,
				desc   : shareData.desc,
				link   : shareData.link,
				imgUrl : shareData.imgUrl,
				success: function(share){
					//share.errMsg=='onMenuShareAppMessage:ok';
					//share.errMsg=='onMenuShareTimeline:ok';
					var url = "{php echo app_url('activity/detail/share',array('id'=>$activity['id']))}";
					var share_action = "{if $_GPC['do']=='activity' && $_GPC['ac']=='detail'}1{/if}";
					if (share_action == '1'){
						$.post(url,function(d) {
							if (d.result==1){
								util.alert(d.data, ' ');
							}else if(d.result==2){
								util.alert(d.data, ' ');
							}
						},"json");
					}
				},
				cancel : function(){}
			};
			wx.onMenuShareAppMessage(_sharedata);
			wx.onMenuShareTimeline(_sharedata);
			wx.onMenuShareQQ(_sharedata);
		});
		//分享设置end
		//位置定位
		var position = {lat:0,lng:0,addr:'',city:'',ucity:''};
		position = $.getCookie("position")==null ? position : JSON.parse($.getCookie("position"));
		{if intval($_W['_config']['location'])}
		if ($.getCookie("position")==null) util.location(function(e){window.location.reload();});
		{/if}
			{if intval($_W['_config']['citys'])}
			var countrie = {php echo intval($_W['_config']['countrie'])==1 || !intval($_W['_config']['countrie']) ? 1 : 0};
			if (countrie && position.ucity==''){
				position.ucity = '全国';
			}else{
				position.ucity = !position.ucity ? position.city.replace("市", "") : position.ucity;
			}
			{/if}
                sessionStorage.setItem("returnUrl", window.location.href);
	</script>
	<!--测试-->
</head>
<body>
